Skip to content

Add Rust navigation lab with 3D trace replay and bounded safety scenarios - #8

Open
ruvnet wants to merge 3 commits into
mainfrom
feat/rust-navigation-lab
Open

ruvnet wants to merge 3 commits into
mainfrom
feat/rust-navigation-lab

Conversation

@ruvnet

@ruvnet ruvnet commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Why

Fleet navigation needs reproducible simulation evidence beyond instantaneous position updates. This adds an independently implemented, simulation-only navigation lab with no aircraft or actuation interface.

Changes

  • Dependency-free Rust crate isolated from optional fleet/GPU dependencies.
  • Bounded 3D A*, conservative continuous segment clearance, explicit no-route outcomes, and trapezoidal motion with bounded braking.
  • Five seeded scenarios: inspection, blocked corridor, stale evidence, link loss, and unknown volume.
  • Interactive projected 3D visualizer driven by Rust traces, orbit/top views, replay controls, JSON export, and host-measured evidence.
  • Loopback-only, read-only HTTP service with Host/Origin checks, bounded headers/timeouts, and an embedded asset allowlist.
  • ADR-175, launcher, validation record, and Rust 1.75/stable simulation CI.

Validation

  • 12 Rust tests passed on Rust 1.75 and stable, locally and on the dedicated ruOS desktop.
  • 100 seeded scenarios: 20 inspection arrivals and 80 expected safety holds; zero detected collision, geofence, or dynamics violations.
  • ruOS release evaluation: planning p50 393 µs, p95 552 µs, maximum 655 µs. One evaluation on 4 exposed CPU cores and 7.8 GiB RAM; this is not sensor-to-actuator latency.
  • Clippy with warnings denied and JavaScript syntax checks passed.
  • HTTP integration exercised all five scenarios and five invalid/cross-origin requests.
  • ruOS visual inspection verified inspection arrival, blocked-route hold, stale-sensor hold, top/orbit view switching, timeline scrubbing, and replay.
  • Navigation CI passes on Rust 1.75 and stable. Existing fleet CI tracked separately.

Deployment

Running on the dedicated ruv-drone Rust Navigation Lab desktop at http://127.0.0.1:8777. Desktop/application launcher and session autostart installed. Source is under ~/dev/ruv-drone-navigation. The viewer uses Canvas projection for the desktop's software renderer and no external CDN.

Limits

Known synthetic geometry and kinematic motion only. No localization, lidar, ROS 2, PX4 SITL, moving obstacles, or aircraft validation. Root fleet runtime and its existing RRT/APF planner remain unchanged. Public upstream documentation was reviewed; this is not presented as a legally isolated clean-room implementation. Full details: tools/navigation-lab/VALIDATION.md and ADR-175.

@ruvnet
ruvnet marked this pull request as ready for review September 16, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant